package dataflowscheme.engine.core;

/**
 * Represents an anchor for a port of an entity 
 * which can be Task, Storage, Trigger or Stopper.
 * 
 * @author <a href="mailto:misiak7@gmail.com">Michal Antolik</a>
 *
 */
public class ConnectionAnchor {

	/** Task, Storage, Trigger or Stopper */
	public IConnectableEntity pe;
	
	/** name of the port */
	public String portName;
	
	public ConnectionAnchor(IConnectableEntity pe, String portName) {
		this.pe = pe;
		this.portName = portName;
	}
	
	/**
	 * @return Task, Storage, Trigger or Stopper
	 */
	public IConnectableEntity getConnEntity(){
		return pe;
	}
	
	/**
	 * @return port name
	 */
	public String getPortName(){
		return portName;
	}
}
